package com.cinyi.ormlite.web.dcp;

import java.sql.DriverManager;
import java.sql.SQLException;

/**
 * 抽象连接池生成器<br>
 * 处理共同操作，如注销jdbc驱动
 * @author penghui
 *
 */
public abstract class AbstractConnectionProvider implements IConnectionProvider{
	
    /**
     * 
     */
	public void onDestroy(){
		try {
			DriverManager.deregisterDriver(DriverManager.getDriver(getJDBCUrl()));
		} catch (SQLException e) {
			e.printStackTrace();
		}  
	}
	
}
